package cn.edu.hunau.java.week03.day05;

import java.time.LocalDate;

public class Employee {
    private Integer id;
    private String name;
    private Double salary;
    private String job;
    private String telphone;
    private LocalDate intoDate;
    private Integer managerId;

    public Employee() {
    }

    public Employee(Integer id, String name, Double salary, String job, String telphone, LocalDate intoDate) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.job = job;
        this.telphone = telphone;
        this.intoDate = intoDate;
    }

    public Employee(Integer id, String name, Double salary, String job, String telphone, LocalDate intoDate, Integer managerId) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.job = job;
        this.telphone = telphone;
        this.intoDate = intoDate;
        this.managerId = managerId;
    }

    @Override
    public String toString() {
        return id + ":" + name + ":" + salary + ":" + job + ":" + telphone + ":" + intoDate + ":" + managerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public LocalDate getIntoDate() {
        return intoDate;
    }

    public void setIntoDate(LocalDate intoDate) {
        this.intoDate = intoDate;
    }

    public Integer getManagerId() {
        return managerId;
    }

    public void setManagerId(Integer managerId) {
        this.managerId = managerId;
    }
}
